
import Request from './request.js'
let request = new Request().http
/*
 * 请求样式：
    自定义名字: function(data) {
        return request({
            url: "/banner", //请求头
            method: "GET", //请求方式 
            data: data,    //请求数据
            whetherData: true,  //是否数据格式规范接口
            hideLoading: false, //加载样式
        })
    }, 
 */
function get(url, data, whetherData = true, hideLoading, header) {
  return request({
    url: url,
    method: 'GET',
    data: data,
    header: header,
    whetherData: whetherData
  })
}
 
function post(url, data, whetherData = true, hideLoading, header) {
  return request({
    url: url,
    method: 'POST',
    data: data,
    header: header,
    whetherData: whetherData,
    hideLoading: hideLoading,
  })
}
 
let api = {
  /*
   *  ================版本号=================
   */
  //1)	楼栋列表信息
  buildlist: data => post('/api/property/build/list', data, false, true),
 //1)	1)	产业集聚标签

 industrytag: data => get('/api/property/list/industry/tag', data, false, true),
 //1)	1)	周边配套
matchinglist: data => post('/api/property/matching/list', data, false, true),
 //1)街道介绍信息	
 streetlist: data => post('/api/property/street/list', data, false, true),
 //1)根据楼宇名称获取龙头企业
 headcompany: data => post('/api/property/list/head/company?buildName='+data.buildName, null, false, true),
 //1)6)	获取空间政策

 policylist: data => get('/api/property/list/policy', data, false, true),
 //详情
  streetlistdetai: data => get('/api/property/getBuild/'+ data, false, true),
 
 
}
 
export default api;